package classsdemo;

/**
 * 类
 * @since 2025-01-05 11:02
 */
public class Person {

    public int age;

    public String name;

    public void getAge() {
        System.out.println(age);
    }

    public String getName() {
        name = "张三";
        return name;
    }

    public void getName1(String name,int age) {
        System.out.println(name);
        System.out.println("age"+age);
    }

    public static void main(String[] args) {
        Person person = new Person();
        //person.getAge();
       // System.out.println(person.getName());
        person.getName1("李四",30);
    }

}
